package com.priox.sigar.server.infrastructure.persistence.util;

import org.hibernate.dialect.DB2Dialect;

import java.sql.Types;

public class CustomDB2Dialect extends DB2Dialect {

      public CustomDB2Dialect() {
                super();

                  registerColumnType( Types.VARCHAR, "char" );
                  registerColumnType( Types.DECIMAL, "decimal($p,$s)" );
                  registerColumnType( Types.DOUBLE, "double" );
                  registerColumnType( Types.NUMERIC, "decimal($p,$s)" );

            }

}

